<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>09-完整版本的表单</title>
</head>
<body>
  <div id="app">
    <h1>vue的例子</h1>
    <p>{{msg}}</p>
    <form>
      用户名: <input type="text" name="userName" v-model="stu.userName"><br />
      密　码: <input type="password" name="password" v-model="stu.password"><br />
      性　别: <input type="radio" name="gender" value="男" v-model="stu.gender">男 <input type="radio" name="gender"
        v-model="stu.gender" value="女"> 女<br />
      爱　好:
      <input type="checkbox" value="抽烟" v-model="stu.hobby">抽烟
      <input type="checkbox" value="滑雪" v-model="stu.hobby">滑雪
      <input type="checkbox" value="洗脚" v-model="stu.hobby">洗脚
      <input type="checkbox" value="打麻将" v-model="stu.hobby">打麻将
      <input type="checkbox" value="学习" v-model="stu.hobby"> 学习<br />
      籍　贯: <select name="province" v-model="stu.province" id="">
        <option value="广东省">广东省</option>
        <option value="山西省">山西省</option>
        <option value="河北省">河北省</option>
        <option value="河南省">河南省</option>
        <option value="吉林省">吉林省</option>
      </select><br />
      简　介: <textarea name="bio" id="" cols="30" v-model="stu.bio" rows="10"></textarea><br />
      <input type="checkbox" v-model="stu.isAgree"> 是否同意协议<br />
      <input type="submit">
    </form>
  </div>
  <script src="./js/vue.js"></script>
  <script>
    Vue.config.productionTip = false; // 关闭生产提示
    const vm = new Vue({
      el: '#app',
      data: {
        msg: 'hello',
        stu: {
          userName: 'rose',
          password: 123456,
          gender: '女',
          hobby: ['学习'],
          province: '河北省',
          bio: '这是一些个人自我简介信息...',
          isAgree: false
        }
      }
    })
  </script>
</body>
</html>